package cn.iocoder.yudao.module.promotion.linkage21.service;

import cn.iocoder.yudao.framework.business.basic.dao.query.CoreQueryWrapper;
import cn.iocoder.yudao.framework.business.basic.service.CrudService;
import cn.iocoder.yudao.framework.business.basic.service.impl.BaseService;
import cn.iocoder.yudao.module.promotion.linkage21.convert.Linkage21ProductConvert;
import cn.iocoder.yudao.module.promotion.linkage21.dao.Linkage21ProductMapper;
import cn.iocoder.yudao.module.promotion.linkage21.pojo.dto.Linkage21ProductQueryDTO;
import cn.iocoder.yudao.module.promotion.linkage21.pojo.dto.Linkage21ProductSaveDTO;
import cn.iocoder.yudao.module.promotion.linkage21.pojo.po.Linkage21Product;
import cn.iocoder.yudao.module.promotion.linkage21.pojo.vo.Linkage21ProductVO;
import jakarta.annotation.Nonnull;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

/**
 * <pre>
 * OOoO0OOoO0OOOooo0oOOOO0OOOOO0oooOO0ooOOO0Ooooo0OOOOo0ooooO0OOooo0Ooooo0OOOOO
 * 服务实现类
 * OOoO0OOoO0OOOooo0oOOOO0OOOOO0oooOO0ooOOO0Ooooo0OOOOo0ooooO0OOooo0Ooooo0OOOOO
 * </pre>
 *
 * @author 山野羡民（1032694760@qq.com）
 * @since 2025/04/12
 */
@Service
public class Linkage21ProductService extends BaseService<Linkage21Product, Linkage21ProductVO, Linkage21ProductQueryDTO> implements CrudService<Linkage21Product, Linkage21ProductVO, Linkage21ProductSaveDTO, Linkage21ProductQueryDTO> {
    @Resource
    private Linkage21ProductMapper linkage21ProductMapper;

    @Override
    public Linkage21ProductMapper getInjectedMapper() {
        return linkage21ProductMapper;
    }

    @Override
    public Linkage21Product convertToEntity(Linkage21ProductSaveDTO param) {
        return Linkage21ProductConvert.INSTANCE.toEntity(param);
    }

    @Nonnull
    @Override
    protected CoreQueryWrapper<Linkage21Product> buildQueryWrapper(Linkage21ProductQueryDTO param) {
        CoreQueryWrapper<Linkage21Product> wrapper = super.buildQueryWrapper(param);
        // TODO 添加自定义查询条件
        return wrapper;
    }

}
